<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close" ng-click="addModal.close()">
        <span aria-hidden="true">×</span></button>
    <h4 class="modal-title">添加用户</h4>
</div>
<div class="col-sm-12 modal-body">
    <div class="box-body">
        <form name="addFrom">

            <div class="form-group col-sm-6">
                <label>用户名称</label><label style="color:red;">*</label>
                <input ng-required="true" placeholder="请输入用户名称" class="form-control" name="brandName"
                       ng-model="addParam.name">
            </div>

            <div class="form-group col-sm-6">
                <label>用户账号</label><label style="color:red;">*</label>
                <input ng-required="true" placeholder="请输入用户账号" class="form-control" name="brandName"
                       ng-model="addParam.username">
            </div>
            <div class="form-group col-sm-6">
                <label>用户初始密码</label><label style="color:red;">*</label>
                <input ng-required="true" placeholder="请输入用户密码" class="form-control" name="brandName" type="password"
                       ng-model="addParam.password1">
            </div>
            <div class="form-group col-sm-6">
                <label>确认用户初始密码</label><label style="color:red;">*</label>
                <input ng-required="true" placeholder="请再次输入用户密码" class="form-control" name="brandName" type="password"
                       ng-model="addParam.password2">
            </div>
            <div class="form-group col-sm-12">
                <label>用户描述</label>
                <textarea class="form-control" ng-model="addParam.description"></textarea>
            </div>
        </form>
    </div>
</div>
<div class="modal-footer">
    <button type="submit" class="btn btn-primary" ng-click="saveUser()">
        保存
    </button>
    <button type="submit" class="btn btn-default pull-right"
            ng-click="addModal.close()">
        关闭
    </button>
</div>